All Questions
3 questions
4votes
1answer
946views
Optimizing a dynamic programming solution for "Oil Well"
I'm trying to solve the Oil Well problem on Hackerrank using dynamic programming and it works. However, it times out for some of the test cases. I wanted to know how this program can be improved so ...
4votes
3answers
3kviews
Project Euler 81 (minimum path sum through a matrix)
Problem Statement: In the 5 by 5 matrix below, 131 673 234 103 18 201 96 342 965 150 630 803 746 422 111 537 699 497 121 956 805 732 524 37 331 ...
2votes
1answer
2kviews
Project Euler #82 - path sum: three ways
Project Euler problem 82 asks: Here's my solution: ...